吼吼[飞].js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. muban.短视2.二级.img = '.detail-pic&&img&&data-src';
  2. var rule = {
  3. title: '吼吼[飞]',
  4. 模板:'短视2',
  5. host: 'https://ihoho.tv',
  6. homeUrl:'/label/rb.html',
  7. // url: '/index.php/api/vod#type=fyclass&page=fypage',
  8. url: '/index.php/api/vod#type=fyfilter&page=fypage',
  9. filterable:1,//是否启用分类筛选,
  10. filter_url:'{{fl.cateId}}',
  11. filter:{
  12. "1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"动作片","v":"6"},{"n":"喜剧片","v":"7"},{"n":"爱情片","v":"8"},{"n":"科幻片","v":"9"},{"n":"恐怖片","v":"10"},{"n":"剧情片","v":"11"},{"n":"战争片","v":"12"},{"n":"灾难片","v":"29"},{"n":"悬疑片","v":"32"},{"n":"冒险片","v":"30"}]}],
  13. "2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"国产剧","v":"13"},{"n":"港台剧","v":"14"},{"n":"日韩剧","v":"15"},{"n":"美剧","v":"16"}]}]
  14. },
  15. filter_def:{
  16. 1:{cateId:'1'},
  17. 2:{cateId:'2'},
  18. 3:{cateId:'3'},
  19. 4:{cateId:'4'},
  20. 20:{cateId:'20'},
  21. 37:{cateId:'37'}
  22. },
  23. class_name:'电影&连续剧&综艺&动漫&纪录片&电影解说',
  24. class_url:'1&2&3&4&20&37',
  25. headers:{
  26. 'User-Agent':'PC_UA',
  27. },
  28. detailUrl:'/vod/detail/id/fyid.html',
  29. play_parse: true,
  30. lazy:`js:
  31. var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
  32. var url = html.url;
  33. if (html.encrypt == '1') {
  34. url = unescape(url)
  35. } else if (html.encrypt == '2') {
  36. url = unescape(base64Decode(url))
  37. }
  38. if (/m3u8|mp4/.test(url)) {
  39. input = url
  40. } else {
  41. input
  42. }
  43. `,
  44. 推荐:'.border-box .public-list-box;a&&title;.lazy&&data-src;.public-list-prb&&Text;a&&href',
  45. 一级:`js:
  46. let body = input.split("#")[1];
  47. let t = Math.round(new Date / 1e3).toString();
  48. let key = md5("DS" + t + "DCC147D11943AF75");
  49. let url = input.split("#")[0];
  50. body = body + "&time=" + t + "&key=" + key;
  51. print(body);
  52. fetch_params.body = body;
  53. let html = post(url, fetch_params);
  54. let data = JSON.parse(html);
  55. VODS = data.list.map(function(it) {
  56. it.vod_pic = urljoin2(input.split("/in")[0], it.vod_pic);
  57. return it
  58. });
  59. `,
  60. }